package com.peas.platform.module.icims.expenditure.expenses.dto;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.dto.BaseDto;
import com.peas.platform.framework.mybatisplus.annotation.Condition;
import com.peas.platform.framework.mybatisplus.annotation.ConditionOperator;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

// 事前用款申请单
@Data
@EqualsAndHashCode(callSuper = false)
public class ExpenditureApplicationDto extends BaseDto {

    // 指标单表ID
    // （指标单表）外键
    @Comment(value = "指标单表ID")
    private Long expenditureKpiId;

    // 申请单号
    // 自动生成
    @Comment(value = "申请单号")
    @Condition(operator = ConditionOperator.IN)
    private String applicationCode;

    // 申请日期
    @Comment(value = "申请日期")
    private Date applicationDate;

    // 申请人部门ID
    // （组织架构表）外键
    @Comment(value = "申请人部门ID")
    private Long applicationOrganizationId;

    // 申请人用户ID
    // （用户表）外键
    @Comment(value = "申请人用户ID")
    private Long applicationUserId;

    // 经济分类
    // （经济分类表）多级外键
    @Comment(value = "经济分类")
    private String expenditureEconomicId;

    // 用款申请单类型
    // 字典取值:ExpenditureApplicationType
    @Comment(value = "用款申请单类型", dictType = "ExpenditureApplicationType")
    private String applicationType;

    // 申请金额
    @Comment(value = "申请金额")
    private BigDecimal amount;

    // 请款事项
    @Comment(value = "请款事项")
    private String items;

    // 支出事由
    @Comment(value = "支出事由")
    private String reason;

    // 状态
    // 0保存、1提交审批、2审批通过、3审批驳回、4撤回
    // 枚举取值:ExpenditureApplicationState
    @Comment(value = "状态", enumType = "ExpenditureApplicationState")
    @Condition(operator = ConditionOperator.IN)
    private String state;

    // 备注
    @Comment(value = "备注")
    private String remark;

    //Criteria
    private Date createTimeStart;
    private Date createTimeEnd;
    private Date updateTimeStart;
    private Date updateTimeEnd;
    private Date applicationDateStart;
    private Date applicationDateEnd;
}
